/**
 * 
 */
package uniandes.dermatologia.resources.models;

import org.droidpersistence.annotation.Column;
import org.droidpersistence.annotation.ForeignKey;
import org.droidpersistence.annotation.PrimaryKey;
import org.droidpersistence.annotation.Table;

/**
 * @author Julio
 *
 */
@Table(name = "ATTEMPT")
public class AttemptModel {
	
	@PrimaryKey(autoIncrement=true)
	@Column(name="ID")
	private long id;
	
	@Column(name = "STUDENT_ID")
	@ForeignKey(tableReference="users", onDeleteCascade=true, columnReference="_id")
	private long student_id;
	
	@Column(name = "TEST_ID")
	@ForeignKey(tableReference="TEST", onDeleteCascade=true, columnReference="ID")
	private long test_id;
	
	@Column(name = "SECONDS")
	private int seconds;

	/**
	 * 
	 */
	public AttemptModel() {
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the student_id
	 */
	public long getStudent_id() {
		return student_id;
	}

	/**
	 * @param student_id the student_id to set
	 */
	public void setStudent_id(long student_id) {
		this.student_id = student_id;
	}

	/**
	 * @return the test_id
	 */
	public long getTest_id() {
		return test_id;
	}

	/**
	 * @param test_id the test_id to set
	 */
	public void setTest_id(long test_id) {
		this.test_id = test_id;
	}

	/**
	 * @return the seconds
	 */
	public int getSeconds() {
		return seconds;
	}

	/**
	 * @param seconds the seconds to set
	 */
	public void setSeconds(int seconds) {
		this.seconds = seconds;
	}

}
